import request from '@/utils/request'

export function listDiagnosis(query) {
  return request({
    url: '/diagnosis/list',
    method: 'get',
    params: query
  })
}

export function createDiagnosis(data) {
  return request({
    url: '/diagnosis/create',
    method: 'post',
    data
  })
}

export function readDiagnosis(query) {
  return request({
    url: '/diagnosis/read',
    method: 'get',
    params: query
  })
}

export function updateDiagnosis(data) {
  return request({
    url: '/diagnosis/update',
    method: 'post',
    data
  })
}

export function deleteDiagnosis(data) {
  return request({
    url: '/diagnosis/delete',
    method: 'post',
    data
  })
}
